package com.zfei.gfb.query;

import com.zfei.gfb.bean.Page;
import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author fgh
 */
public class GfbLandPublicityQuery extends Page {

    // 类型 1:土地 2:池塘, 3: 山林
    @ApiModelProperty(value = "类型 1:土地 2:池塘, 3: 山林", required = true)
    private Integer type;

    public void setType(Integer value) {
        this.type = value;
    }

    public Integer getType() {
        return this.type;
    }

    public Page check(){
        if(type == null){
            throw new StatusException(Status.INVALID_ARGUMENT);
        }
        return this;
    }
}

